import React, { Component } from 'react';
import { StyleSheet, View, Image } from 'react-native';
import { px2dp } from '../../../common/styles';
/**
 * @modifyAuthor kanglang
 * @description 模块提示item
 * @createDate 2020/8/24
 */

export default class TipItem extends Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    render() {
        const { tipIcon, style } = this.props;
        return (
            <View style={[styles.wrap, style]}>
                <Image
                    source={tipIcon ? tipIcon : require('../../../image/icons/lmyl_tip.png')}
                    style={styles.iconStyle}
                />
            </View>
        );
    }

}
const styles = StyleSheet.create({
    wrap: {
        justifyContent: 'center',
        alignItems: 'center'
    },
    iconStyle: {
        width: px2dp(82) * 2,
        height: px2dp(25) * 2
    }
});
